﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class BackGround_Default : System.Web.UI.Page
{
    Operation operation = new Operation();　//声明业务类
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            try
            {
                if (Session["AdmName"] == null || operation.Logon(Session["AdmName"].ToString()).Tables[0].Rows.Count<=0)
                    WebMessageBox.Show("请登录后方可进入网站后台！", "../Logon.aspx");
            }
            catch { }
            Session.Add("Admin", Session["AdmName"].ToString());
        }
    }
    public void PageExit()
    {
       Response.Write("../Default.aspx");
    }
}
